package com.archive.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * token过期表
 * </p>
 *
 * @author Janus
 * @since 2023-10-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_sys_expire")
@ApiModel(value="SysExpire对象", description="token过期表")
public class SysExpire implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    private Long userId;

    @ApiModelProperty(value = "过期时间")
    private LocalDateTime expires;

    @ApiModelProperty(value = "token值")
    private String token;

    @ApiModelProperty(value = "预留字段")
    private String reserved;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
